package com.party.core.model.material;

import com.party.core.model.BaseModel;

import java.util.Objects;

/**
 * @program: party
 * @description: 素材分社关系表
 * @author: Hua Qunhao
 * @create: 2019-12-10 11:41
 **/
public class MaterialMember extends BaseModel {
    //文章id
    private  String articleId;
    //分社id
    private  String memberId;

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        MaterialMember that = (MaterialMember) o;
        return Objects.equals(articleId, that.articleId) &&
                Objects.equals(memberId, that.memberId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), articleId, memberId);
    }

    @Override
    public String toString() {
        return "MaterialMember{" +
                "articleId='" + articleId + '\'' +
                ", memberId='" + memberId + '\'' +
                '}';
    }
}
